import tdRequest from "@/request/trademark";
export const getTrademarkList=async(page:number,limit:number,)=>{
    return await tdRequest.get(`/admin/product/baseTrademark/${page}/${limit}`)
}

interface TrademarkData{
    id?:number,
    logoUrl:string,
    tmName:string
}
// 新增
export const addTrademark = async(data:TrademarkData)=>{
    return await tdRequest.post('/admin/product/baseTrademark/save',data)
}
// 修改
export const editTrademark = async(data:TrademarkData)=>{
    return await tdRequest.put('/admin/product/baseTrademark/update',data)
}
export const deleteTrademark=async(id:number)=>{
    return await tdRequest.delete(`/admin/product/baseTrademark/remove/${id}`)
}




